<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .list {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
      }
      .your-element {
        display: block;
        -webkit-transform: translate(50%, -50%);
        -ms-transform: translate(50%, -50%);
        transform: translate(50%, -50%);
        background-color: bisque;
        width: 280px;
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div class="list">
      <div
        class="your-element"
        data-tilt
        data-tilt-max="50"
        data-tilt-speed="400"
        data-tilt-perspective="500"
      ></div>
      <div
        class="your-element"
        data-tilt
        data-tilt-max="50"
        data-tilt-speed="400"
        data-tilt-perspective="500"
      ></div>
      <div
        class="your-element"
        data-tilt
        data-tilt-max="50"
        data-tilt-speed="400"
        data-tilt-perspective="500"
      ></div>
    </div>

    <!-- at the end of the body -->
    <script
      type="text/javascript"
      src="https://cdn.bootcdn.net/ajax/libs/vanilla-tilt/1.7.2/vanilla-tilt.js"
    >
       VanillaTilt.init(document.querySelector(".your-element"), {
      	max: 25,
      	speed: 400
      });
    </script>
  </body>
</html>
